import request from '../request'
 
const logins = {
    //登录
    login(data) {
        return request({
            url: '/user/login',
            method: 'post',
            data
        })
    },
    //登出
    logout(params) {
        return request({
          url: '/user/logout',
          method: 'get',
          params
        })
    }
}

export default logins